
package com.leaves.modular.buspicturefabulous.service.impl;

import cn.hutool.core.bean.BeanUtil;
import cn.hutool.core.util.ObjectUtil;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.leaves.core.exception.ServiceException;
import com.leaves.core.factory.PageFactory;
import com.leaves.core.pojo.page.PageResult;
import com.leaves.core.util.PoiUtil;
import com.leaves.modular.buspicturefabulous.entity.BusPictureFabulous;
import com.leaves.modular.buspicturefabulous.enums.BusPictureFabulousExceptionEnum;
import com.leaves.modular.buspicturefabulous.mapper.BusPictureFabulousMapper;
import com.leaves.modular.buspicturefabulous.param.BusPictureFabulousParam;
import com.leaves.modular.buspicturefabulous.service.BusPictureFabulousService;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * 作品点赞service接口实现类
 *
 * @author 寻叶人
 * @date 2022-03-28 21:25:11
 */
@Service
public class BusPictureFabulousServiceImpl extends ServiceImpl<BusPictureFabulousMapper, BusPictureFabulous> implements BusPictureFabulousService {

    @Override
    public void deleteRecord(Long pictureId) {
        LambdaQueryWrapper<BusPictureFabulous>   queryWrapper = new LambdaQueryWrapper<>();
        queryWrapper.eq(BusPictureFabulous::getPictureId,pictureId);
        this.baseMapper.delete(queryWrapper);
    }
}
